const homeService = require('../service/home')
const testFunController = async (ctx,next)=>{
    console.log(ctx.params.name,'ctx')
    ctx.body = {
        code:200,
        message:'testFunService&&studyMvcService success'
    }
    // let results = await homeService.testFunService(123)
    // if(results){
    //     let results1 = await homeService.studyMvcService(456)
    //     if(results){
    //         ctx.body = {
    //         code:200,
    //         message:'testFunService&&studyMvcService success'
    //        }
    //     }else{
    //         ctx.body = {
    //         code:500,
    //         message:'studyMvcService.error',
    //        }
    //     }
    // }else{
    //     ctx.body = {
    //         code:500,
    //         message:'testFunService.error',
    //     }
    // }   
}

module.exports = {
    testFunController
}